export default {

  // 添加用户
  addUser(state, action) {
    return { users: [] }
  },

  // 获取用户
  getusers(state, action) {
    return {
      ...state,
      users: [...state.users,...action.payload]
    }
  },

  // 分页用户显示
  getuserspage(state, action) {
    return {
      ...state,
      users: [...state.users, ...action.payload]
    }
  },
  // 清空
  clearusers(state,action){
    return { users: [] }
  }




}